package ns2;

import util.SSIDException;

public enum NodeCharacteristics {
	RISKPROFILE, LOADFACTOR, DISRUPTIONCOST;

	public static NodeCharacteristics getCharacteristic(String str)
			throws SSIDException {
		if (str.equals("$riskprofile"))
			return NodeCharacteristics.RISKPROFILE;
		else if (str.equals("$loadfactor"))
			return NodeCharacteristics.LOADFACTOR;
		else if (str.equals("$disruptioncost"))
			return NodeCharacteristics.DISRUPTIONCOST;
		else
			throw new SSIDException(
					"Error: unknown profile type in topology file.");
	}

}
